﻿using ECO.Admin.Application.Controllers.Auth.Dtos.OutputDtos;
using ECO.Admin.Core.Entities.System;

namespace ECO.Admin.Application.Controllers.Auth.Dtos
{
    public class AuthMapper : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            config.ForType<SysUser, LoginDto>()
                .Map(dest => dest.Account, src => src.Email);
        }
    }
}